package com.wancaijinfu.parse;


import org.json.JSONException;
import org.json.JSONObject;

import com.wancaijinfu.javabean.Yuebao;

public class YuebaoParse  extends PostParse{

	@Override
	public Object parseSuccess(JSONObject object) throws JSONException {
		JSONObject newObj = object.getJSONObject("item");
	
		Yuebao item = new Yuebao();
		item.yesterday_income = newObj.getDouble("yesterday_income");
		item.total_income = newObj.getDouble("total_income");
		item.total = newObj.getDouble("total");
		item.yield = newObj.getDouble("yield");
		return item;
	}
	
}
